<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ 
	taglib prefix="s" uri="/struts-tags"%><%@ 
	include file="/taglibs.jsp"%>
<s:actionerror />
<s:actionmessage />
<s:fielderror />
<script type="text/javascript" charset="UTF-8" src="/js/formValidator.js" charset="UTF-8"></script>
<script type="text/javascript" charset="UTF-8" src="/js/formValidatorRegex.js" charset="UTF-8"></script>
<script language="javascript">
	$(document).ready( function() {
		$.formValidator.initConfig({formid:"formObj",onerror:function(msg){alert(msg)},onsuccess:function(){return true;}});
		//栏位资料验证
		$("#nameNative").formValidator().inputValidator({	
			min:2,
			max:20,
			onerror:"显示名称须介于2-20个字元之间" });
		$("#email").formValidator().regexValidator({
			regexp:"email",datatype:"enum",
			onerror:"输入的邮箱格式不正确"});
	});	
</script>

<s:form name="formObj" id="formObj" action="self/save.do" method="post">
<br />
<table class="tb-data" width="100%">
	<tr>
		<th width="20%">* 帐号</th>
		<td>${username}</td>
	</tr>
	<tr>
		<th>* 姓名</th>
		<td><s:textfield name="nameNative" id="nameNative"/></td>
	</tr>
	<tr>
		<th>* 电子邮件</th>
		<td>${email}</td>
	</tr>
	<tr>
		<th>电话</th>
		<td><s:textfield name="phone"/></td>
	</tr>
	<tr>
		<th>手机</th>
		<td><s:textfield name="mobile"/></td>
	</tr>
	<tr>
		<td colspan="2">
			<div class="f-link">
	<input type="submit" value="存档">
	<input type="button" onclick="document.location='view.do'" value="取消">
			</div>
		</td>
	</tr>		
</table>
</s:form>
